package icu.minxin.binary;

import lombok.Data;

/**
 * @ClassName: BinaryNode
 * @Author AbelEthan
 * @Email AbelEthan@126.com
 * @Date 2021/6/4 下午3:31
 * @Description
 */
@Data
public class BinaryNode {

    private Integer data;
    private BinaryNode leftNode;
    private BinaryNode rightNode;

    public BinaryNode() {
    }

    public BinaryNode(Integer data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "{" +
                "data:" + data +
                ", leftNode:" + leftNode +
                ", rightNode:" + rightNode +
                '}';
    }
}
